package com.itheima.datastructure.blockingqueue;
/*
1.使用了锁技术保证线程安全
2.如果poll或者push操作出现不满足条件的情况，让线程进入等待状态，而不是让cpu空转浪费资源
 */
public interface BlockingQueue<E> {
    void offer(E e) throws InterruptedException;

    boolean offer(E e,long timeout) throws InterruptedException;

    E poll() throws InterruptedException;
}
